﻿<%@ Page Language="C#"   AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="CanDoo.Oil.WebApp.financeSellAdvanceMoney.Edit" %>

<%@ Register Src="../UserControls/SelectCustomer.ascx" TagPrefix="uc1" TagName="SelectCustomer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>销售预付款编辑</title>
    <link href="/res/css/common.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="PanelMain" runat="server" />

        <f:Panel ID="PanelMain" ShowBorder="false" ShowHeader="false"  AutoScroll="true" runat="server" Layout="Anchor" >
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                        <f:Button ID="btnClose" EnablePostBack="false" runat="server" Hidden="true"
                            Text="关闭">
                        </f:Button>
                        <f:Button ID="btnSave" ValidateForms="FormEdit" Hidden="true"
                            OnClick="btnSave_Click" runat="server" Text="保存">
                        </f:Button>
                        <f:Button ID="btnToEdit" Hidden="true"
                            OnClick="btnToEdit_Click" runat="server" Text="编辑信息">
                        </f:Button>
                        <f:HiddenField ID="ed_EntityId" runat="server"></f:HiddenField>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:Form BodyPadding="10px" ShowBorder="false" EnableCollapse="true"
                    ID="FormEdit" runat="server" ShowHeader="false" LabelAlign="Right">
                    <Items>
                        <f:Panel ID="Panel0" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_Code" runat="server" Label="收款单号" MaxLength="50" ColumnWidth="30%" Readonly="true" EmptyText="系统自动生成">
                                </f:TextBox>
                                <f:TextBox ID="ed_Name" runat="server" Required="true" ShowRedStar="True" Label="概要" ColumnWidth="70%" >
                                </f:TextBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DropDownBox runat="server" ID="ed_Customer" EmptyText="请选择客户" DataControlID="SelectCustomerControl_GridList" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="true" AutoShowClearIcon="true"  Required="true" ShowRedStar="True" Label="客户" ColumnWidth="50%">
                                    <PopPanel>
                                        <f:UserControlConnector runat="server">
                                            <uc1:SelectCustomer runat="server" id="SelectCustomer" />
                                        </f:UserControlConnector>
                                    </PopPanel>
                                </f:DropDownBox>
                                <f:DatePicker ID="ed_PayDate" runat="server" Required="true" ShowRedStar="True" Label="收款日期" ColumnWidth="50%">
                                </f:DatePicker>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel4" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DropDownList ID="ed_SellBillType" runat="server" Label="收款单类型" ColumnWidth="50%" >
                                </f:DropDownList>
                                <f:DropDownList ID="ed_PayType" runat="server" Label="收款方式" ColumnWidth="50%" >
                                </f:DropDownList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel6" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:NumberBox ID="ed_Money" runat="server" Required="true" ShowRedStar="True" Label="收款金额" ColumnWidth="50%" >
                                </f:NumberBox>
                                <f:NumberBox ID="ed_UsedMoney" runat="server" Required="true" ShowRedStar="True" Label="已使用金额" Readonly="true" ColumnWidth="50%" >
                                </f:NumberBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel8" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextArea ID="ed_Remark" runat="server" Label="备注"  Height="150px" MaxLength="500">
                                </f:TextArea>
                            </Items>
                        </f:Panel>
                    </Items>
                </f:Form>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
